<template>
  <div class="shopImg-container">
    <h3 class="title">{{ shopImg.title }}</h3>
    <hr>
    <div class="content" v-html="shopImg.content"></div>
  </div>
</template>

<script>
export default {
  data(){
    return {
    shopImg:{}
    }
  },
  created(){
    this.getShopInfoImg()
  },
  methods:{
    async getShopInfoImg(){
      let data=await this.ajax.get(`/api/shopInfo/${this.$route.params.id}`)
      this.shopImg=data.data[0]
    }
  }
}
</script>

<style lang="less">
.shopImg-container{
  padding: 5px;
  .title{
    font-size:18px;
    color: blue;
    padding: 10px 0;
    text-align: center;
  }
  .content{
    color:#000;
    padding-top:10px;
    img{
      width: 100%;
    }
  }
}

</style>